<?php

namespace Tictactoe;

class Storage
{
    protected static $storage = array();
    
    public static function getInstanceOfClass($className) {
        if (!isset(self::$storage[$className])) {
            self::$storage[$className] = new $className();
        }
        
        return self::$storage[$className];
    }
}